/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

.app {
  .font-antialiasing;
  .full-screen;
  display: flex;
  min-width: @screen-md-min;
  background-color: @app-bg;

  .left-column {
    position: relative;
    flex: 0 0 auto;
    color: @left-color;
    fill: @left-color;
    width: @left-width;

    .team-mode & {
      width: @left-width + @teams-width;
    }
  }

  .center-column {
    position: relative;
    flex: 1 1 auto;

    &__overlay {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      display: none;
      opacity: 0;
    }

    #conversation-input-bar,
    #conversation-title-bar {
      width: 100%;
    }
  }

  .right-column {
    background-color: #fff;
    transform: scale(1, 1);
    overflow: hidden;
    z-index: @z-index-panel;
    width: 0;
    height: 100vh;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  }

  @media (min-width: 1000px) {
    .right-column {
      box-shadow: -1px 0 0 #eee;
    }
  }

  &.app--panel-open {
    .center-column__overlay {
      display: block;
    }

    .right-column {
      position: absolute;
      right: 0;
      width: @right-width;
    }

    @media (min-width: 1000px) {
      .right-column {
        position: relative;
      }

      .center-column__overlay {
        display: none;
      }
    }
  }
}
